package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

public class ElderRequestBody {
    @Data
    public static class addElder {
        private String name;
        private String number;
        private String phone;
        private Integer sex;
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date birthday;
        private Integer certificateId;
    }

    @Data
    public static class updateElder {
        private Integer id;
        private String name;
        private String number;
        private String phone;
        private Integer sex;
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date birthday;
        private Integer certificateId;
    }
}
